package Chapter5;

class MyThread{
	public void run() {
		while(true) {
			System.out.println("MyThread");//这是一个死循环
		}
	}
}

public class Example01 {
	public static void main(String[] args) {
		MyThread thread=new MyThread();
		thread.run();
		while(true) {
			System.out.println("main");//这是一个死循环
		}
	}

}
